package hiWorld.amad.it;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;

public class timerManager {

	AlarmManager alarms;
	
	PendingIntent alarmIntent;

	public timerManager(Activity master)
	{
/*        AlaManager alarms = (AlarmManager)master.getSystemService(Context.ALARM_SERVICE);
        
        String ALARM_ACTION;
        ALARM_ACTION  = gpsTrack.ACTION_REFRESH_GPS_COORDS;
        
        alarmIntent = PendingIntent.getBroadcast(master, 0, new Intent(ALARM_ACTION), 0);
  */      
	}
	
	public void startTiming(int timerLength)
	{
        alarms.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, timerLength*1000, timerLength*1000, alarmIntent );
	}

}
